//
//  SQHierarchyModel.m
//  energy
//
//  Created by 周曼迪 on 2021/7/7.
//

#import "SQHierarchyModel.h"


@implementation SQHierarchyModelPersonnelArray


@end

@implementation SQHierarchyModelArray
+(NSDictionary *)cc_arrayWithClass{
    return @{@"personnel":[SQHierarchyModelPersonnelArray class]};
}
-(NSArray<NSString *> *)nameArr{
    NSMutableArray *arr = @[].mutableCopy;
    for (SQHierarchyModelPersonnelArray *d in self.personnel) {
        [arr addObject:d.m_name];
    }
    return arr;
}
@end


@implementation SQHierarchyModel
+(NSString *)api{
    return @"User/User_Login.asmx/Hidden_danger_confirmation_level";
}
+(NSDictionary *)cc_arrayWithClass{
    return @{@"data":[SQHierarchyModelArray class]};
}
- (NSArray<NSString *> *)nameArr{
    NSMutableArray *arr = @[].mutableCopy;
    for (SQHierarchyModelArray *d in self.data) {
        [arr addObject:d.os_name];
    }
    return arr;
}
@end
